package com.um.jdy.common.platform.code;

import com.um.springboot.starter.utils.EnumUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 登录模块返回码
 *
 * @author renjunwie
 * 日期 2022/7/26
 * 版权所有 广州优匠科技有限公司
 */
@Getter
@AllArgsConstructor
public enum LoginCode implements EnumUtil.ErrorEnum {

    CodeSended(18001, "已发送验证码，请稍后再试！"),
    SendFailed(18002, "发送验证码失败！"),
    CodeError(18003, "验证码错误！"),
    CodeExpired(18004, "验证码已过期！"),
    CodeMissing(18005, "请先获取验证码！"),
    MobileExist(18006, "手机号码已存在！"),
    MobileNotExist(18007, "手机号码不存在！"),
    PwdError(18008, "密码错误！"),
    EmailExist(18009, "邮箱已存在！"),
    EmailNotExist(18010, "邮箱不存在！"),
    CodeKeyError(18011, "验证码标识错误！"),
    OldPwdError(18012, "原密码错误！"),
    EditPwdError(18013, "修改密码失败！"),
    PwdConsistent(18014, "修改失败，新密码不允许与旧密码一致！"),
    MobileIllegal(18015, "手机号码不合法！"),
    EmailIllegal(18016, "手机号码不合法！"),
    AuthError(18017, "微信未授权！"),
    CodeRequired(18018, "验证码不能为空！"),
    AccountNotExist(18019, "用户账号不存在！"),
    AccountDisabled(18020, "账号已禁用！"),
    MpOpenIdExist(18021,"此微信已绑定其他账号！"),
    LoginError(18022,"登录失败：账号或密码错误!"),
    SendCodeRrequently(18023, "发送太过于频繁，请1分钟后再试！"),
    ;

    private Integer code;
    private String msg;



}
